<template>
  <div id="home" >
    <vue-particles
      color="#dedede"
      :particleOpacity="0.7"
      :particlesNumber="40"
      shapeType="star"
      :particleSize="4"
      linesColor="#FFFFFF"
      :linesWidth="2"
      :lineLinked="true"
      :lineOpacity="0.4"
      :linesDistance="150"
      :moveSpeed="3"
      :hoverEffect="true"
      hoverMode="grab"
      :clickEffect="true"
      clickMode="push"
      class="cash"
    >
    </vue-particles>
    <div class="header">
      <div class="nav-item">Welcome to iTest~</div>
    </div>
    <div class="main">
      <div class="form">
        <div class="nav-item1">iTest</div>
        <div class="input1">
          <input type="text" placeholder="Username:" />
        </div>
        <div class="input2">
          <input type="text" placeholder="Password:" />
        </div>
        <div class="button">
          <button>Sign up</button>
          <button>Go to login</button>
          <button>Cancel</button>
        </div>
      </div>
    </div>
  </div>

</template>

<script>
export default {
  data() {
    return {
    }
  },
  created() {},
  methods: {}
};
</script>
<style>
  .cash {
    position:fixed;
    top:180px;
    width:100%;
  }
  #home {
    width: 100vw;
    height: 100vh;
    background: url("../assets/view2.jpg") no-repeat;
    background-size: cover;
    overflow: hidden;
    opacity:0.8;
  }
  .nav-item1 {
    width: 430px;
    height: 60px;
    font-size: 50px;
    color: navy;
    font-family: STLiti;
    transform: translate(60%,60%);
  }
  .input1 {
    margin-top: 10px;
    color: navy;
  }
  .header {
    height: 100px;
    background: url("../assets/view2.jpg") no-repeat;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-item {
    width: 480px;
    height: 100%;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: left;
    cursor: pointer;
    font-size: 50px;
    /*font-family: STLiti;*/
    color: navy;
    font-family: STCaiyun;
    transform: translate(10%,50%);
  }

  button:active{
    background-color: lightblue;
    color: rgba(156,255,255,0.7);
  }

  .main {
    width: 75%;
    height: 50%;
    left: 15%;
    position: relative;
    margin-top: 400px;
    padding-bottom: 50px;
  }

  .form {
    width: 600px;
    height: 800px;
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 50%;
    top:50%;
    transform: translate(-60%,-50%);
    background-color:rgba(255,255,255,0.7);
  }

  input {
    margin-top:30px;
    height: 70px;
    border: 1px solid #ccc;
    box-shadow: 1px 1px 1px 1px #ffb6c1;
    margin-bottom: 30px;
    width: 400px;
    color: navy;
    font-size: 18px;
    font-family: FZShuTi;
    transform: translate(25%,25%);
  }

  button{
    height: 50px;
    border: 1px solid #fff;
    margin-bottom: 30px;
    width: 140px;
    cursor: pointer;
    background-color:  rgba(156,200,255,0.8);
    color: navy;
    font-family: FZShuTi;
    font-size: 20px;
  }

  .form div{
    display: flex;
    align-items: center;
    justify-content: space-between;/*弹性布局*/
  }
</style>
